import Vue from 'vue'
import Vuex from 'vuex'
import teacher from './modules/teacher'
import student from './modules/student'
import teacherGetters from './getters/teacher'
import studentGetters from './getters/student'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    teacher,
    student
  },
  getters: {
    ...teacherGetters,
    ...studentGetters
  }
})

export default store
